//
//  CaseDetailCell.m
//  MyDIYHouse
//
//  Created by dllo on 15/6/30.
//  Copyright (c) 2015年 李平洋. All rights reserved.
//

#import "CaseDetailCell.h"

@implementation CaseDetailCell

-(void)dealloc
{
    [_furniturePictureView release];
    //    [_furnitureIntroduceLable release];
    [_furnitureBackgroundView release];
    [super dealloc];
    
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor=[UIColor blackColor];
        
        self.furnitureBackgroundView=[[UIView alloc]init];
        //        self.furnitureBackgroundView.layer.borderWidth=1;
        //        self.furnitureBackgroundView.layer.cornerRadius=5;
        self.furnitureBackgroundView.backgroundColor=[UIColor whiteColor];
        [self.contentView addSubview:self.furnitureBackgroundView];
        [self.furnitureBackgroundView release];
        
        
        
        
        self.furniturePictureView=[[UIImageView alloc]init];
        //        self.furniturePictureView.layer.borderWidth=1;
        //        self.furniturePictureView.layer.cornerRadius=5;
        self.furniturePictureView.backgroundColor=[UIColor cyanColor];
        [self.furnitureBackgroundView addSubview:self.furniturePictureView];
        [self.furniturePictureView release];
        
        
        //        self.furnitureIntroduceLable=[[UILabel alloc]init];
        //        self.furnitureIntroduceLable.font=[UIFont systemFontOfSize:20];
        //        self.furnitureIntroduceLable.backgroundColor=[UIColor purpleColor];
        //        [self.furnitureBackgroundView addSubview:self.furnitureIntroduceLable];
        //        [_furnitureIntroduceLable release];
        
        
    }
    
    
    return self;
    
    
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.furnitureBackgroundView.frame=CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height);
    
    self.furniturePictureView.frame=CGRectMake(14, 14, self.contentView.frame.size.width-50, self.contentView.frame.size.height-70);
    
    //    self.furnitureIntroduceLable.frame=CGRectMake(11, self.contentView.frame.size.height-120,self.contentView.frame.size.width-40, 85);
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
